<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<%@ include file="head.jsp"%>
<link href="/products/css/news.css"
	rel="stylesheet" type="text/css" />
	
<link rel='stylesheet' id='dt-main-css'  href='/products/css/main.css' type='text/css' media='all' />
<link rel='stylesheet' id='dt-custom.less-css'  href='/products/css/custom.css' type='text/css' media='all' />
	
	

<body>
	<div style="height: 65%">
		<div class="main">
			<h2 class="page">您的位置：${title}</h2>
			<div class="mleft">
				<div class="news_left" id="listbox">
					<div class="gxnewsbox" id="new_lt">
						<ul>
							<c:forEach items="${newses }" var="news" varStatus="status">
								<li><a href="/products/newsDetail?id=${news.id }"
									> <c:if test="${!empty news.gameName}">
											<cite>[${news.gameName}]</cite>
										</c:if> ${news.title }
								</a> <span><fmt:formatDate value="${news.date}"
											pattern="yyyy-mm-dd" /></span></li>
								<c:if test="${(status.count%5)==0}">
									<li id="nt_bd"><div class="ud_ds"></div></li>
								</c:if>
							</c:forEach>
						</ul>
						
						<!--分页-->
						<c:if test="${total >25}">
							<div class="paginator" role="navigation">
								<div class="page-links">
									<c:forEach begin="0" end="${maxPageNo-1 }" varStatus="status">
										<c:choose>
											<c:when test="${status.index==pageNo }">
												<a class="act"
													href="/products/news?newsType=${newsType}&pageIndex=${status.index}">${status.count }</a>
											</c:when>
											<c:otherwise>
												<a href="/products/news?newsType=${newsType}&pageIndex=${status.index}">${status.count }</a>
											</c:otherwise>
										</c:choose>

									</c:forEach>
								</div>
								<div class="page-nav">
									<c:if test="${pageNo>0 }">
										<a href="/products/news?newsType=${newsType}&pageIndex=${pageNo-1}"
											class="nav-prev">前一页</a>
									</c:if>
									<c:if test="${pageNo<maxPageNo-1 }">
										<a href="/products/news?newsType=${newsType}&pageIndex=${pageNo+1}"
											class="nav-next">后一页</a>
									</c:if>
								</div>
							</div>
						</c:if>
					</div>
					<div class="cl"></div>
				</div>
			</div>



		</div>
	</div>

	<%@ include file="footer.jsp"%>
</body>
</html>
